package org.springcloud.plugin.strategy.service.adapter;

import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpResponse;

import java.io.IOException;

/**
 * @Author yanggld
 * @Date 2020/2/5-16:42
 * @Description  自定义拦截器。rest请求中加入自定义属性
 */
public interface RestTemplateStrategyInterceptorAdapter {
	ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException;
}
